package com.xiaomi.service;

import com.xiaomi.domain.OrdersEntity;
import com.xiaomi.domain.TrolleyEntity;
import com.xiaomi.domain.UserEntity;

import java.text.ParseException;
import java.util.List;

public interface TrolleyService {
    List<TrolleyEntity> Shoppingcartdisplay(Integer uid);

    void addOrDeleteNumber(Integer tid, Integer number);

    void   deleteTrolley(Integer tid);

    OrdersEntity createOrders(double sumPrice, Integer goodsCount, UserEntity user) throws ParseException;


    void deleteByuid(int uid);

    int selectTrolleyCount(Integer uid);



    void addGoodInCart(Integer uid, Integer gid);
}
